<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
 * Created by PhpStorm.
 * User: HP
 * Date: 2017/6/23
 * Time: 11:24
 */
class Goods_model extends CI_Model
{
    const TBL_CATE = "goods";

    public function list_goods(){
        $query = $this->db->get(self::TBL_CATE);
        return $query->result_array();
    }
}